#ifndef MINEDISPLAYDEVICE_H
#define MINEDISPLAYDEVICE_H

#include <QIODevice>
#include <QXYSeries>
#include <QtCharts>

using namespace QtCharts;

class MineDisplayDevice : public QIODevice
{
    Q_OBJECT
public:
    explicit MineDisplayDevice(QXYSeries * series, qint64 pointsCount, QObject *parent= nullptr);
protected:
    qint64 readData (char * data, qint64 maxSize) ;
    qint64 writeData(const char * data, qint64 maxSize) ;
private :
    QXYSeries *m_series = nullptr;
    qint64 range=4000;
signals:
    void updateBlockSize(qint64 blockSize) ;
};

#endif // MINEDISPLAYDEVICE_H
